/********************************************************************
	Rhapsody	: 7.5 
	Login		: kbe
	Component	: DefaultComponent 
	Configuration 	: CodeConfig
	Model Element	: StubSynchronousEventDemultiplexer
//!	Generated Date	: Wed, 5, Sep 2012  
	File Path	: DefaultComponent\CodeConfig\StubSynchronousEventDemultiplexer.cpp
*********************************************************************/

//## auto_generated
#include "StubSynchronousEventDemultiplexer.h"
//## dependency EHANDLE
#include "EHANDLE.h"
//## package Default

//## class StubSynchronousEventDemultiplexer
StubSynchronousEventDemultiplexer::StubSynchronousEventDemultiplexer() : eventType(0) {
    //#[ operation StubSynchronousEventDemultiplexer()
    eventType = 0;
    //#]
}

StubSynchronousEventDemultiplexer::~StubSynchronousEventDemultiplexer() {
}

Event_Type StubSynchronousEventDemultiplexer::SimulateEvents(EHANDLE& handle) {
    //#[ operation SimulateEvents(EHANDLE)
    if (eventType == 3)
    	eventType = 1;
    else 
    	eventType++;
    return (Event_Type)eventType;
    
    //#]
}

void StubSynchronousEventDemultiplexer::setEventType(unsigned int p_eventType) {
    eventType = p_eventType;
}

/*********************************************************************
	File Path	: DefaultComponent\CodeConfig\StubSynchronousEventDemultiplexer.cpp
*********************************************************************/
